package mastermind.gui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import mastermind.gui.Frame;
import mastermind.gui.LoginFrame;
import mastermind.gui.RegisterFrame;

public class LoginAction extends AbstractAction{

	private Frame mainFrame;
	
	public LoginAction(Frame frame)
	{
		this.mainFrame = frame;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {

		LoginFrame frame = new LoginFrame(mainFrame); //show login frame
		frame.setVisible(true);
		
	}

}
